<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/oa/resignation.js?time=' + sys_get_time();
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
		
		}
	});
	$('#editResigantionForm').find("input:checkbox, input:radio").not('input.ibtn').uniform();
});
</script>
<#import "/freemarker/modeltype.ftl" as mt>
<#import "/freemarker/modeltype_entity.ftl" as mte>
<div>
	<h3>编辑离职信息</h3>
</div>
<div style="width:400px;float:left;">
	<div height="50">
		<form id="editResigantionForm">
			<table class="table table-striped">
				<tr style="height:40px;"><td class="table-left">是否负责人</td>
					<td><@mt.YesOrNo value=((resignation.head)!false) r=true name='head' d=false mc=false />
						<input type="hidden" id="code" name="code" value="${(resignation.code)!''}"/>
						<input type="hidden" id="oc" name="oc" value="${(resignation.oc)!''}"/>
					</td>
				</tr>
				<tr"><td class="table-left">离职时间</td>
					<td><input id="ft" type="text" name="ft" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});" value="${(resignation.ft?string('yyyy-MM-dd'))!''}"></td>
				</tr>
				<tr><td class="table-left">离职原因</td>
					<td><textarea id="reason" name="reason" cols="30">${(resignation.reason)!''}</textarea></td>
				</tr>
				<tr><td colspan="2" style="text-align: center;">
						<a href="#" class="btn btn-info" onclick="javascript:saveResigantion_resignation(); return false;">
							<i class="icon-save"></i> &nbsp;保&nbsp;&nbsp;存
						</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="#" class="btn btn-primary" onclick="javascript: history.back(); return false;">
							<i class="fontello-icon-block"></i>&nbsp;取&nbsp;&nbsp;消
						</a>
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>
